<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Login Page</title>

    <link rel="stylesheet" th:href="@{/css/style.css}"></link>
</head>
<body>
<div class="login-container">
    <h2>Login</h2>
    <form id="loginForm" th:action="@{${loginAction}}" method="post">
        <div class="form-group">
            <label for="username">Username</label>
            <input type="text" id="username" name="username" value="admin" required>
        </div>
        <div class="form-group">
            <label for="password">Password</label>
            <input type="password" id="password" name="password" value="password" required>
        </div>
        <div class="form-group">
            <button type="submit">Login</button>
        </div>
    </form>
    <div id="errorMessage" class="error" th:if="${param.error}">
        Invalid username or password

    </div>
    <div class="form-group">
            <input type="textarea" rows="100" width="500" id="token" name="token">
    </div>
</div>

<script>

</script>
<script th:src="@{/js/auth.js}"></script>
</body>
</html>